package training.haritha.singleton;

public class Singleton {
	private static Singleton instance;

	static {
		System.out.println("Message: During class loading");
	}

	public static Singleton getInstance() {
		if (instance == null) {
			instance = new Singleton();
		}
		return instance;
	}

	private Singleton() {

		System.out.println("Within Constructor");
	}

}
